package com.dot.dominion.domain.players;

import com.dot.dominion.domain.Player;

/**
 * Singleton class representing Player 4.
 * 
 * @author Shahin
 */
public class Player4 implements Player {

  private static final long serialVersionUID = -4189448361840263687L;
  private static final Player _instance = new Player4();
  
  private final int _id = 3;
  
  private String _name = "Player 4";
  
  /**
   * Private constructor to enfore the Singleton design pattern.
   */
  private Player4 () {}
  
  /**
   * @return The single instance representing Player 4.
   */
  public static Player getInstance () {
    return _instance;
  }
  
  public void changeName (String name) {
    _name = name;
  }
  
  public int getId() {
    return _id;
  }
  
  public String getName() {
    return _name;
  }

}
